package org.yefei.homeworkday06;

public class HomeWorkSeven {

	public static void main(String[] args) {
		// 7：输出比10000大的10个质数
		int j = 0, k;
		for (int i = 10000;; i++) {
			for (k = 2; i % k != 0 && k * k < i; k++) {
			}
			if (k * k > i) {
				j++;
				System.out.println(i + "\t");
				if (j >= 10) {
					break;
				}
			}
		}
	}
}
